<?php
require_once(dirname(dirname(dirname(dirname(__FILE__))))) . '/Library/Util/Inflection/Inflector.php';
require_once(dirname(dirname(dirname(dirname(__FILE__))))) . '/Library/Util/Inflection/PTBR_InflectorRules.php';
require_once(dirname(dirname(dirname(dirname(__FILE__))))) . '/Party/simpletest/autorun.php';
use NatalPHP\Util;
use NatalPHP\Util\Inflection;


class PTBR_InflectorRulesTest extends UnitTestCase {

    public $inflector;

    public function setup(){
        $this->inflector = Inflection\Inflector::getInstance();
        $this->inflector->setRules(new Inflection\PTBR_InflectorRules());
    }

    public function TestOfPluralizeMethod(){
        $this->assertEqual($this->inflector->singularize('casas'), 'casa');
    }

}

